package com.chhuang.bean;

import com.chhuang.core.valid.ValidationGroups;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @ClassName LoginBean
 * @Description 登录用的用户名、密码、验证码等的类
 * @Author Darren Huang
 * @Date 2022/11/19 20:49
 * @Version 1.0
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "LoginBean实体类", description = "用于登录用的用户名、密码、验证码等的类")
public class LoginBean implements Serializable {
    private static final long serialVersionUID = -115086709328535163L;
    /**
     * 用户名
     */
    @NotBlank(message = "{username.not_blank}")
    @ApiModelProperty(value = "用户名")
    private String account;

    /**
     * 密码
     */
    @NotBlank(message = "{password.not_blank}")
    @ApiModelProperty(value = "密码")
    private String password;

    /**
     * 验证码
     */
    @Valid
    @ApiModelProperty(value = "验证码")
    private CaptchaBean captchaBean;

    /**
     * 客户端唯一标识
     */
    @ApiModelProperty(value = "客户端唯一标识")
    private String clientUUID;
}
